﻿using System.ServiceModel;
using Kugar.Core.BaseStruct;
using Kugar.Core.Security;
using Kugar.ERPFramework.Entity;

namespace Kugar.ERPFramework.BLLInterface
{
    /// <summary>
    ///     用户管理的接口
    /// </summary>
    [ServiceContract]
    public interface  ILoginUserManager
    {

        ResultReturn<LoginUserInfo[]> GetAllUser();

        ResultReturn<LoginUserInfo> GetUserInfoByUserID(int userID);

        ResultReturn<int> CreateUser(string userName, string password);

        ResultReturn DeleteUser(string userName);

        ResultReturn StopUser(string userName);

        ResultReturn<LoginUserInfo[]> SearchUserByName(string userName);

        ResultReturn<RMS_PermissionValueCollection> GetCurrentUserPermission();

        IProjectInstance ProjectInstance { get; }
    }

    
}